package com.bean;

import java.util.Date;

/**
 * @ClassName Announce
 * @Desc 公告类
 * @Author xiaoding
 * @Date 2021/1/17 20:56
 * @Version 1.0
 */

public class Announce {
    //功能属性
    private int id;
    private String title;
    private String content;
    private int uId;
    private Date publishingDate;
    private Date modifyTime;
    private String uName;

    //构造方法
    public Announce() {}
    public Announce(int id, String title, String content, int uId, Date publishingDate, Date modifyTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.uId = uId;
        this.publishingDate = publishingDate;
        this.modifyTime = modifyTime;
    }
    public Announce(String title, String content, int uId, Date publishingDate, Date modifyTime) {
        this.title = title;
        this.content = content;
        this.uId = uId;
        this.publishingDate = publishingDate;
        this.modifyTime = modifyTime;
    }

    //get、set方法
    public int getId() {
        return id;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public int getuId() { return uId; }

    public Date getPublishingDate() { return publishingDate; }

    public String getuName() { return uName; }

    public Date getModifyTime() { return modifyTime; }

    public void setId(int id) { this.id = id; }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setuId(int uId) { this.uId = uId; }

    public void setPublishingDate(Date publishingDate) { this.publishingDate = publishingDate; }

    public void setModifyTime(Date modifyTime) { this.modifyTime = modifyTime; }

    @Override
    public String toString() {
        return "Announce{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", uId=" + uId +
                ", publishingDate=" + publishingDate +
                ", modifyTime=" + modifyTime +
                ", uName='" + uName + '\'' +
                '}';
    }
}
